home *** CD-ROM | disk | FTP | other *** search
- Path: blanket.mitre.org!philabs!nobody
- From: dcv@philabs.research.philips.com (Dinesh Verma)
- Newsgroups: comp.lang.c,comp.programming
- Subject: Coding Standards for C using threads
- Date: 5 Mar 1996 09:58:04 -0500
- Organization: Philips Laboratories, Briarcliff, NY 10510
- Distribution: inet
- Message-ID: <4hhkps$1qu@onyx.philabs.research.philips.com>
- NNTP-Posting-Host: onyx.philabs.research.philips.com
- Keywords: Coding Standards/Guidelines for thread-based programming
-
- Hi,
- I am looking for C coding guidelines/recommended practices which should be
- used when coding in the presence of threads. Do you know of any such guidelines
- which exists out there.
- Our team is quite experienced in both C and programming using threads. So, we
- are not looking for tutorials but for safe practices that should be followed.
- We have found severed coding guidelines/standards that deal with C programming,
- but we have not found any guidelines dealing explicity with systems that
- deal with threads or light-weight process programming.
- We are looking for guidelines that will contain:
-
- 1. Any data-structure that could be accessed by multiple threads should be
- locked before modifying.
- 2. Any variable that can be shared between two threads must be allocated on
- the heap and not the stack.
- .....
-
- I hope I have made clarified what I am looking for. We can develop such a
- guidelines on our own experience, but if you already has such a canonical
- list, and are willing to share it, we would be most thankful.
-
- Please reply by e-mail, and I will summarize them in the newgroup.
- Regards,
- Dinesh Verma
- dcv@philabs.philips.com
-
-